//
//  XLUserCenterInteractor.m
//  industry
//
//  Created by xl on 2020/11/12.
//  Copyright © 2020 Haier. All rights reserved.
//

#import "XLUserCenterInteractor.h"
#import "XLUserCenterInteractorProtocol.h"
#import "XLAccountSafeVC.h"
#import "XLAboutUsVC.h"
#import "XLAppletManager.h"
#import "XLAppletModel.h"
#import "XLProblemVC.h"

@interface XLUserCenterInteractor ()<XLUserCenterInteractorProtocol>

@end
@implementation XLUserCenterInteractor

- (void)dealloc {
    XLLog(@"XLUserCenterInteractor dealloc");
}

#pragma mark - XLUserCenterInteractorProtocol
- (void)gotoAccountSafeVC {
    XLAccountSafeVC *vc = [[XLAccountSafeVC alloc] init];
    [self.baseController.navigationController pushViewController:vc animated:YES];
}

- (void)gotoAboutUsVC {
    XLAboutUsVC *vc = [[XLAboutUsVC alloc] init];
    [self.baseController.navigationController pushViewController:vc animated:YES];
}

- (void)gotoAppletVC:(XLAppletModel *)model {
    XLAppletManager *manager = [[XLAppletManager alloc] init];
    [manager handleJumpLogic:@(1) url:model.appletUrl appId:model.appId];
}

- (void)gotoProblemVC {
    XLProblemVC *vc = [[XLProblemVC alloc] init];
    [self.baseController.navigationController pushViewController:vc animated:YES];
}

@end
